import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/entity/sendcode_entity.dart';

SendcodeEntity $SendcodeEntityFromJson(Map<String, dynamic> json) {
  final SendcodeEntity sendcodeEntity = SendcodeEntity();
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    sendcodeEntity.msg = msg;
  }
  final int? code = jsonConvert.convert<int>(json['code']);
  if (code != null) {
    sendcodeEntity.code = code;
  }
  final String? uuid = jsonConvert.convert<String>(json['uuid']);
  if (uuid != null) {
    sendcodeEntity.uuid = uuid;
  }
  return sendcodeEntity;
}

Map<String, dynamic> $SendcodeEntityToJson(SendcodeEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['msg'] = entity.msg;
  data['code'] = entity.code;
  data['uuid'] = entity.uuid;
  return data;
}

extension SendcodeEntityExtension on SendcodeEntity {
  SendcodeEntity copyWith({
    String? msg,
    int? code,
    String? uuid,
  }) {
    return SendcodeEntity()
      ..msg = msg ?? this.msg
      ..code = code ?? this.code
      ..uuid = uuid ?? this.uuid;
  }
}